package com.sky.service.user.impl;

import com.sky.mapper.user.USetmealMapper;
import com.sky.pojo.Setmeal;
import com.sky.service.user.SetmealService;
import com.sky.vo.DishItemVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userSetmealService")
public class SetmealServiceImpl implements SetmealService {
    @Autowired
    private USetmealMapper uSetmealMapper;

    @Override
    public List<Setmeal> list(Setmeal setmeal) {
        List<Setmeal> list = uSetmealMapper.list(setmeal);
        return list;
    }

    @Override
    public List<DishItemVO> findDishBySid(Long id) {
        List<DishItemVO> dishBySid = uSetmealMapper.findDishBySid(id);
        return dishBySid;
    }
}
